﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Adams.Admin.Business.Console
{
    public static class Users
    {
        public static Adams.Admin.DataTransfer.Console.Users.PageLoad PageLoad()
        {
            return DataAccess.Console.Users.PageLoad();
        }

        public static Adams.Admin.DataTransfer.Console.Users.GridLoad GridLoad(DataTransfer.GridLoadInput gridinput)
        {
            return DataAccess.Console.Users.GridLoad(gridinput);
        }

        public static void DeleteUser(int userId, int id)
        {
            if (userId != id)
            {
                DataAccess.Console.Users.DeleteUser(id);
            }
        }
    }
}
